﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace LinqDemo
{
    /// <summary>
    /// 学生实体
    /// </summary>
    public class Student
    {
        public int Id { get; set; }
        public int ClassId { get; set; }
        public string Name { get; set; }
        public int Age { get; set; }

        private string Decription { get; set; }

        /// <summary>
        /// 学习高级开发
        /// </summary>
        public void Study()
        {
            Console.WriteLine($"{this.Id} {this.Name}跟着Richard老师学习.net高级开发");
        }

        /// <summary>
        /// 直接新增一个方法
        /// </summary>
        public void StudyQt()
        {
            Console.WriteLine($"{this.Id} {this.Name}跟着Richard师学习C++ Qt");
        }

        //public void StudyEmbedded()
        //{
        //    Console.WriteLine($"{this.Id} {this.Name}跟着Richard师学习嵌入式开发");
        //}
    }

    /// <summary>
    /// 班级实体
    /// </summary>
    public class Class
    {
        public int Id { get; set; }
        public string ClassName { get; set; }
    }
}

